/**
 * @(#)ApkRetentConfig.java 2016年11月16日
 * Copyright(C) 2016 ZHEXIN IT CO.,LTD. All rights reserved.
 */
package org.jsbd.boss.domian.channel;

/**
 * TODO 请加入本类的说明
 * 
 * @author <a href="mailto:xupengcheng@zhexinit.com" >徐鹏程</a>
 * @version 1.0.0
 */
public class ApkRetentConfig extends ChannelApkConfig {
	/**
	 * serialVersionUID TODO 请描述这个变量的含义
	 */
	private static final long serialVersionUID = -2911841971928927216L;

	/**
	 * 用户留存比例
	 */
	private Double retentRate;

	private Double brushRate;

	/**
	 * 留存天数
	 */
	private Integer retentDay;

	/*
	 * 留存对应的天
	 */
	private String retentDate;

	/**
	 * 用户执行次数
	 */
	private Integer exetimes;

	private Integer priority;

	public Double getRetentRate() {
		return retentRate;
	}

	public void setRetentRate(Double retentRate) {
		this.retentRate = retentRate;
	}

	public Integer getRetentDay() {
		return retentDay;
	}

	public void setRetentDay(Integer retentDay) {
		this.retentDay = retentDay;
	}

	public Integer getExetimes() {
		return exetimes;
	}

	public void setExetimes(Integer exetimes) {
		this.exetimes = exetimes;
	}

	public String getRetentDate() {
		return retentDate;
	}

	public void setRetentDate(String retentDate) {
		this.retentDate = retentDate;
	}

	public Integer getPriority() {
		return priority;
	}

	public void setPriority(Integer priority) {
		this.priority = priority;
	}

	public static long getSerialversionuid() {
		return serialVersionUID;
	}


	public Double getBrushRate() {
		return brushRate;
	}

	public void setBrushRate(Double brushRate) {
		this.brushRate = brushRate;
	}

	@Override
	public int hashCode() {
		final int prime = 31;
		int result = 1;
		result = prime * result + ((getMark() == null) ? 0 : getMark().hashCode());
		result = prime * result + ((retentDay == null) ? 0 : retentDay.hashCode());
		return result;
	}

	@Override
	public boolean equals(Object obj) {
		if (this == obj)
			return true;
		if (obj == null)
			return false;
		if (getClass() != obj.getClass())
			return false;
		ApkRetentConfig other = (ApkRetentConfig) obj;
		if (getMark() == null) {
			if (other.getMark() != null)
				return false;
		} else if (!getMark().equals(other.getMark()))
			return false;
		if (retentDay == null) {
			if (other.retentDay != null)
				return false;
		} else if (!retentDay.equals(other.retentDay))
			return false;
		return true;
	}

}
